import { ref } from 'vue';
const LANG = localStorage.getItem('LANG');
export const themeConfig = ref({
    // 默认初始语言，可选值"<zh-cn|en>"，默认 zh-cn
    globalI18n: LANG ? LANG : 'EN',
});
// 获取图片地址
export const getImageUrl = (name: string) => {
    return new URL(`/src/assets/images/${name}.png`, import.meta.url).href
}
//可支持切换的语种
export const langList = [{
    name: 'EN',
    srcPath: getImageUrl('english')
}]